package cn.leaf.state;

/**
 *
 * desc: 订单状态
 *
 * @author twinkle-leaf
 * @version v1.0.0
 * @since 2021-03-21 00:02:24
 * slogan: There are no two identical leaves in the world.🍃
 *
 */
public interface OrderState {

    /**
     * 确认订单
     * @param order 订单
     */
    void confirm(Order order);

    /**
     * 取消订单
     * @param order 订单
     */
    void cancel(Order order);

    /**
     * 发货
     * @param order 订单
     */
    void ship(Order order);
}
